const mongoose = require('mongoose');
var materializedPlugin = require('mongoose-materialized');
var Schema = mongoose.Schema;

var mongoosePaginate = require('mongoose-paginate');
// mongoose.connect('mongodb://localhost/materialized');

var schema = new Schema({
    name: String, //
    cate: String,
    describe: String,

});
schema.plugin(mongoosePaginate);

module.exports = mongoose.model('Cate', schema, 'cate');